package day12;

import java.io.File;
import java.io.IOException;

public class file01 {
    public static void main(String[] args) throws IOException {
        File file=new File("G:\\ready");
//        System.out.println(file.canRead());
//        System.out.println(file.canWrite());
        File file2=new File("G:\\ready\\1.txt");
        System.out.println(file2.createNewFile());
        System.out.println(file2.length());
        System.out.println(file2.isFile());
        System.out.println(file2.getParentFile());
        File file3= new File("G:\\ready\\a\\b\\c");
        System.out.println(file3.mkdirs());
        file=new File("G:\\ready\\v");
        System.out.println(file.mkdir());


    }
}
